import Vue from 'vue'
import Vuex from 'vuex'
import user from './user'
import cart from './cartList'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
	},
	getters: {
		token(state) {
			return state.user.userInfo.token
		}
	},
	modules: {
		user,
		cart
	}
})
